﻿using Infrastructure.Web;
using MyData.Data.Repository;
using MyData.Dto;
using MyData.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyDomain
{
  public  interface IAccessRecordRepository : IRepositoryBase<AccessRecord>
    {
        List<RecordChartDto> GetRecordChartDtos(DateTime StartDate, DateTime EndDate);
        PageDto<CheckInDto> GetCheckIn(QueryListModel query, DateTime StartDate, DateTime EndDate);
        RecentRecordDto GetRecentRecord();
        List<RecentRecordDto> GetRecentRecord8(Guid mobileId);
      
        bool SaveRecordPic(Guid recordId, string picPath);
        List<UserRecordPicDto> GetRecordTop20();
        PageDto<CheckRecordDto> GetNewAccessRecord(QueryListModel query, string NickName, DateTime StartDate, DateTime EndDate);
        bool SaveAccessRecord(AccessRecord accessRecord);

        bool SaveAccessRecords(List<AccessRecord> accessRecords);
        bool AccessRecordBatchDelete(List<Guid> ids);


        //淮安
        bool SaveAccessRecordRM(AccessRecord accessRecord, string machineCode);


        PageDto<XXCheckRecord> GetXXCheckRecord(QueryListModel query, DateTime StartDate, DateTime EndDate);

    }
}
